#!/usr/bin/env bash

if  ! tee  "./hello.txt" << mongo
    hello:1
    hello:2

mongo
then
    echo "111111111"
else
    echo "22222222222"
fi
